<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>xilplmi: xplmi_glitchdetector.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">xilplmi
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;"
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xplmi__glitchdetector_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xplmi_glitchdetector.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This is the file which contains glitch detector code. </p>
<p>This contains APIs for configuring glitch detector, enable/disable the glitch detector and to read the status of glitch detector. These APIs support both client and server mode for glitch detector0 and glitch detector1.</p>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who  Date        Changes
----- ---- ---------- --------------------------------------------------------------------------
1.00  pre  06/09/2024 Initial release
      pre  07/17/2024 Used register node to access PMC analog registers and fixed
                      misrac warnings
      pre  10/19/2024 Added support for PL microblaze</pre><pre></pre><dl class="section note"><dt>Note</dt><dd></dd></dl>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a5e00c55561b7cc044e22c4e08884ef1f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#a5e00c55561b7cc044e22c4e08884ef1f">XPLMI_REFVOL_3LSBITS_MASK</a>&#160;&#160;&#160;0x07</td></tr>
<tr class="memdesc:a5e00c55561b7cc044e22c4e08884ef1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mask to extract 3 least significant bits from reference voltage.  <a href="#a5e00c55561b7cc044e22c4e08884ef1f">More...</a><br/></td></tr>
<tr class="separator:a5e00c55561b7cc044e22c4e08884ef1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56ab06fef0f76da3cfb3f594f000a8ca"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#a56ab06fef0f76da3cfb3f594f000a8ca">XPLMI_DEPTH_3LSBITS_MASK</a>&#160;&#160;&#160;0x07</td></tr>
<tr class="memdesc:a56ab06fef0f76da3cfb3f594f000a8ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mask to extract 3 least significant bits from depth.  <a href="#a56ab06fef0f76da3cfb3f594f000a8ca">More...</a><br/></td></tr>
<tr class="separator:a56ab06fef0f76da3cfb3f594f000a8ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9d63b0e4e1ca2af77ef1b893ab01eb7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#ab9d63b0e4e1ca2af77ef1b893ab01eb7">XPLMI_REFVOL_MSBIT_MASK</a>&#160;&#160;&#160;0x08</td></tr>
<tr class="memdesc:ab9d63b0e4e1ca2af77ef1b893ab01eb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mask to extract most significant bit from reference voltage.  <a href="#ab9d63b0e4e1ca2af77ef1b893ab01eb7">More...</a><br/></td></tr>
<tr class="separator:ab9d63b0e4e1ca2af77ef1b893ab01eb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a991eea6a899f5f3aceb30fc05529db2c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#a991eea6a899f5f3aceb30fc05529db2c">XPLMI_DEPTH_2MSBITS_MASK</a>&#160;&#160;&#160;0x18</td></tr>
<tr class="memdesc:a991eea6a899f5f3aceb30fc05529db2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mask to extract 2 most significant bits from depth.  <a href="#a991eea6a899f5f3aceb30fc05529db2c">More...</a><br/></td></tr>
<tr class="separator:a991eea6a899f5f3aceb30fc05529db2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a435c2870857a6e387b7c55e166ef823f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#a435c2870857a6e387b7c55e166ef823f">XPLMI_REFVOL_MSBIT_SHIFT</a>&#160;&#160;&#160;(16U)</td></tr>
<tr class="memdesc:a435c2870857a6e387b7c55e166ef823f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shift value to place most significant bit of reference voltage.  <a href="#a435c2870857a6e387b7c55e166ef823f">More...</a><br/></td></tr>
<tr class="separator:a435c2870857a6e387b7c55e166ef823f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed9b3e232820220619e129b4e203c065"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#aed9b3e232820220619e129b4e203c065">XPLMI_REFVOL_3LSBITS_SHIFT</a>&#160;&#160;&#160;(12U)</td></tr>
<tr class="memdesc:aed9b3e232820220619e129b4e203c065"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shift value to place 3 least significant bits of reference voltage.  <a href="#aed9b3e232820220619e129b4e203c065">More...</a><br/></td></tr>
<tr class="separator:aed9b3e232820220619e129b4e203c065"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a653b4085b49665c7a5e8d7905f80b330"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#a653b4085b49665c7a5e8d7905f80b330">XPLMI_DEPTH_2MSBITS_SHIFT</a>&#160;&#160;&#160;(1U)</td></tr>
<tr class="memdesc:a653b4085b49665c7a5e8d7905f80b330"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shift value to place 2 most significant bits of depth.  <a href="#a653b4085b49665c7a5e8d7905f80b330">More...</a><br/></td></tr>
<tr class="separator:a653b4085b49665c7a5e8d7905f80b330"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefadb2118c33eeaf0db0f8a2c9ef0556"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#aefadb2118c33eeaf0db0f8a2c9ef0556">XPLMI_DEPTH_3LSBITS_SHIFT</a>&#160;&#160;&#160;(16U)</td></tr>
<tr class="memdesc:aefadb2118c33eeaf0db0f8a2c9ef0556"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shift value to place 3 least significant bits of depth.  <a href="#aefadb2118c33eeaf0db0f8a2c9ef0556">More...</a><br/></td></tr>
<tr class="separator:aefadb2118c33eeaf0db0f8a2c9ef0556"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a427f1b8634081aa748e3e63eef1b43cd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#a427f1b8634081aa748e3e63eef1b43cd">XPLMI_WIDTH_BITS_SHIFT</a>&#160;&#160;&#160;(8U)</td></tr>
<tr class="memdesc:a427f1b8634081aa748e3e63eef1b43cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shift value to place bits of width.  <a href="#a427f1b8634081aa748e3e63eef1b43cd">More...</a><br/></td></tr>
<tr class="separator:a427f1b8634081aa748e3e63eef1b43cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafb479cfb18b07b9708ac2d4581bb4d2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#aafb479cfb18b07b9708ac2d4581bb4d2">XPLMI_WORD_LEN</a>&#160;&#160;&#160;(4U)</td></tr>
<tr class="memdesc:aafb479cfb18b07b9708ac2d4581bb4d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Word size in bytes.  <a href="#aafb479cfb18b07b9708ac2d4581bb4d2">More...</a><br/></td></tr>
<tr class="separator:aafb479cfb18b07b9708ac2d4581bb4d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0aaba8765423cf60f7e2d289da39824"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#ae0aaba8765423cf60f7e2d289da39824">XPLMI_GD1_STATUS_POS</a>&#160;&#160;&#160;(16U)</td></tr>
<tr class="memdesc:ae0aaba8765423cf60f7e2d289da39824"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bit position of glitch detector1 status.  <a href="#ae0aaba8765423cf60f7e2d289da39824">More...</a><br/></td></tr>
<tr class="separator:ae0aaba8765423cf60f7e2d289da39824"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a38c3851f0289fdaf921b7ad554f2c290"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#a38c3851f0289fdaf921b7ad554f2c290">XPlmi_WriteReg32</a> (u32 Offset, u32 Data)</td></tr>
<tr class="memdesc:a38c3851f0289fdaf921b7ad554f2c290"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes value to register.  <a href="#a38c3851f0289fdaf921b7ad554f2c290">More...</a><br/></td></tr>
<tr class="separator:a38c3851f0289fdaf921b7ad554f2c290"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71e07b36be5081d644cd6a660fedbf92"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#a71e07b36be5081d644cd6a660fedbf92">XPlmi_ReadReg32</a> (u32 Offset, u32 *Data)</td></tr>
<tr class="memdesc:a71e07b36be5081d644cd6a660fedbf92"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads register value.  <a href="#a71e07b36be5081d644cd6a660fedbf92">More...</a><br/></td></tr>
<tr class="separator:a71e07b36be5081d644cd6a660fedbf92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0d04c7416d6b05c9ad8866b2bc85075"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#ae0d04c7416d6b05c9ad8866b2bc85075">XPlmi_ConfigureGlitchDetector</a> (u8 Depth, u8 Width, u8 RefVoltage, u8 UserRegVal, u8 GlitchDetectorNum)</td></tr>
<tr class="memdesc:ae0d04c7416d6b05c9ad8866b2bc85075"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function configures desired glitch detector.  <a href="#ae0d04c7416d6b05c9ad8866b2bc85075">More...</a><br/></td></tr>
<tr class="separator:ae0d04c7416d6b05c9ad8866b2bc85075"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0839de08ae5828a40a24fffbb05d104"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#ab0839de08ae5828a40a24fffbb05d104">XPlmi_ChangeGlitchDetectorState</a> (u8 GlitchDetectorNum, eStatus EnableStatus)</td></tr>
<tr class="memdesc:ab0839de08ae5828a40a24fffbb05d104"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function enables/disables the desired glitch detector.  <a href="#ab0839de08ae5828a40a24fffbb05d104">More...</a><br/></td></tr>
<tr class="separator:ab0839de08ae5828a40a24fffbb05d104"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1d10e6e53de2b84eb47a4decf72e155"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xplmi__glitchdetector_8c.html#aa1d10e6e53de2b84eb47a4decf72e155">XPlmi_GlitchDetectorStatus</a> (u8 GlitchDetectorNum, u8 *GlitchDetStatus)</td></tr>
<tr class="memdesc:aa1d10e6e53de2b84eb47a4decf72e155"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function reads the status of desired glitch detector.  <a href="#aa1d10e6e53de2b84eb47a4decf72e155">More...</a><br/></td></tr>
<tr class="separator:aa1d10e6e53de2b84eb47a4decf72e155"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a991eea6a899f5f3aceb30fc05529db2c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPLMI_DEPTH_2MSBITS_MASK&#160;&#160;&#160;0x18</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Mask to extract 2 most significant bits from depth. </p>

</div>
</div>
<a class="anchor" id="a653b4085b49665c7a5e8d7905f80b330"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPLMI_DEPTH_2MSBITS_SHIFT&#160;&#160;&#160;(1U)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Shift value to place 2 most significant bits of depth. </p>

</div>
</div>
<a class="anchor" id="a56ab06fef0f76da3cfb3f594f000a8ca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPLMI_DEPTH_3LSBITS_MASK&#160;&#160;&#160;0x07</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Mask to extract 3 least significant bits from depth. </p>

</div>
</div>
<a class="anchor" id="aefadb2118c33eeaf0db0f8a2c9ef0556"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPLMI_DEPTH_3LSBITS_SHIFT&#160;&#160;&#160;(16U)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Shift value to place 3 least significant bits of depth. </p>

</div>
</div>
<a class="anchor" id="ae0aaba8765423cf60f7e2d289da39824"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPLMI_GD1_STATUS_POS&#160;&#160;&#160;(16U)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Bit position of glitch detector1 status. </p>

</div>
</div>
<a class="anchor" id="a5e00c55561b7cc044e22c4e08884ef1f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPLMI_REFVOL_3LSBITS_MASK&#160;&#160;&#160;0x07</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Mask to extract 3 least significant bits from reference voltage. </p>

</div>
</div>
<a class="anchor" id="aed9b3e232820220619e129b4e203c065"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPLMI_REFVOL_3LSBITS_SHIFT&#160;&#160;&#160;(12U)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Shift value to place 3 least significant bits of reference voltage. </p>

</div>
</div>
<a class="anchor" id="ab9d63b0e4e1ca2af77ef1b893ab01eb7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPLMI_REFVOL_MSBIT_MASK&#160;&#160;&#160;0x08</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Mask to extract most significant bit from reference voltage. </p>

</div>
</div>
<a class="anchor" id="a435c2870857a6e387b7c55e166ef823f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPLMI_REFVOL_MSBIT_SHIFT&#160;&#160;&#160;(16U)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Shift value to place most significant bit of reference voltage. </p>

</div>
</div>
<a class="anchor" id="a427f1b8634081aa748e3e63eef1b43cd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPLMI_WIDTH_BITS_SHIFT&#160;&#160;&#160;(8U)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Shift value to place bits of width. </p>

</div>
</div>
<a class="anchor" id="aafb479cfb18b07b9708ac2d4581bb4d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPLMI_WORD_LEN&#160;&#160;&#160;(4U)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Word size in bytes. </p>

<p>Referenced by <a class="el" href="group__xilplmi__server__apis.html#ga16dfbc95a9bdf0502840e261b8865652">XPlmi_DmaTransfer()</a>, <a class="el" href="group__xilplmi__server__apis.html#gae804925f6b45d1685a010c2d1d3e842f">XPlmi_DsOps()</a>, <a class="el" href="group__xilplmi__server__apis.html#ga3ca67e4e848d511ee898a666db13464f">XPlmi_EccInit()</a>, <a class="el" href="group__xilplmi__server__apis.html#ga166fa6a68d9c4df38fd7d3af77a7b521">XPlmi_InitNVerifyMem()</a>, <a class="el" href="group__xilplmi__server__apis.html#gaadaef02a2e674a71f8c0eeb895b915a8">XPlmi_MemCpy64()</a>, <a class="el" href="group__xilplmi__server__apis.html#gab7f5511c526c00a7477c689c3a476e3f">XPlmi_MemSet()</a>, <a class="el" href="group__xilplmi__server__apis.html#ga996d4ed8fe42abcb42ef2fba05264a68">XPlmi_MemSetBytes()</a>, <a class="el" href="group__xilplmi__server__apis.html#ga180e0da7c5bf8b67eb38f54c3db12149">XPlmi_MoveBuffer()</a>, <a class="el" href="group__xilplmi__server__apis.html#ga3bf28338a8becd4ef0e19689fb0a7116">XPlmi_PrintArray()</a>, <a class="el" href="group__xilplmi__server__apis.html#gaf8878d25485f7e85643a90933ed37e67">XPlmi_PsmSequence()</a>, <a class="el" href="group__xilplmi__server__apis.html#ga18c18ecfe4d08c8da4dc0bec5218cb59">XPlmi_RestoreDataBackup()</a>, <a class="el" href="group__xilplmi__server__apis.html#ga1e1cdb534edb8282728567c27ed02bc1">XPlmi_ScatterWrite2()</a>, <a class="el" href="group__xilplmi__server__apis.html#gabff99cf415b44f557a2d16f59a382b69">XPlmi_SearchBufferList()</a>, and <a class="el" href="group__xilplmi__server__apis.html#gafba1a999a3e425ab640268869f765c53">XPlmi_StoreBuffer()</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ab0839de08ae5828a40a24fffbb05d104"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XPlmi_ChangeGlitchDetectorState </td>
          <td>(</td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>GlitchDetectorNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">eStatus&#160;</td>
          <td class="paramname"><em>EnableStatus</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function enables/disables the desired glitch detector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GlitchDetectorNum</td><td>is the number of glitch detector to be enabled/disabled </td></tr>
    <tr><td class="paramname">EnableStatus</td><td>indicates action i.e., enable/disable</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS on success.</li>
<li>error code on failure. </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="ae0d04c7416d6b05c9ad8866b2bc85075"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XPlmi_ConfigureGlitchDetector </td>
          <td>(</td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Depth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>Width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>RefVoltage</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>UserRegVal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>GlitchDetectorNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function configures desired glitch detector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Depth</td><td>is the minimum voltage glitch detection depth </td></tr>
    <tr><td class="paramname">Width</td><td>is the minimum glitch detector width </td></tr>
    <tr><td class="paramname">RefVoltage</td><td>is the reference voltage for the glitch detector comparators </td></tr>
    <tr><td class="paramname">UserRegVal</td><td>indicates to select the register values instead of the eFUSE values to configure the glitch detector </td></tr>
    <tr><td class="paramname">GlitchDetectorNum</td><td>is the number of glitch detector to be configured</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS on success.</li>
<li>error code on failure. </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="aa1d10e6e53de2b84eb47a4decf72e155"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XPlmi_GlitchDetectorStatus </td>
          <td>(</td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>GlitchDetectorNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8 *&#160;</td>
          <td class="paramname"><em>GlitchDetStatus</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function reads the status of desired glitch detector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GlitchDetectorNum</td><td>is the number of glitch detector whose status is to be read </td></tr>
    <tr><td class="paramname">GlitchDetStatus</td><td>holds the status</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of glitch detector </dd></dl>

</div>
</div>
<a class="anchor" id="a71e07b36be5081d644cd6a660fedbf92"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XPlmi_ReadReg32 </td>
          <td>(</td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32 *&#160;</td>
          <td class="paramname"><em>Data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads register value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Offset</td><td>Offset of the register. </td></tr>
    <tr><td class="paramname">Data</td><td>Value to be read.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XST_SUCCESS on success error code on failure </dd></dl>

</div>
</div>
<a class="anchor" id="a38c3851f0289fdaf921b7ad554f2c290"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XPlmi_WriteReg32 </td>
          <td>(</td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes value to register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Offset</td><td>Offset of the register </td></tr>
    <tr><td class="paramname">Data</td><td>Value to be written in register</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XST_SUCCESS on success error code on failure </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
